﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DeepTime.Shared.Entities;
using Microsoft.WindowsAzure.StorageClient;

namespace DeepTime.DL.DataModels
{
    public class DeepZoomImageMetaDataDataModel : TableServiceEntity
    {
        #region Constructors

        public DeepZoomImageMetaDataDataModel()
        {
        }

        public DeepZoomImageMetaDataDataModel(DeepZoomImageMetaDataEntity Entity)
        {
            PartitionKey = Entity.PartitionKey;
            RowKey = Entity.RowKey;
            BlobUri = Entity.BlobUri;
            Height = Entity.Height;
            Width = Entity.Width;
        }

        #endregion Constructors

        #region Properties

        public string BlobUri { get; set; }
        public int Height { get; set; }
        public int Width { get; set; }

        #endregion Properties

        #region Methods

        public DeepZoomImageMetaDataEntity GetEntity()
        {
            return new DeepZoomImageMetaDataEntity()
            {
                PartitionKey = this.PartitionKey,
                RowKey = this.RowKey,
                BlobUri = this.BlobUri,
                Height = this.Height,
                Width = this.Width
            };
        }

        #endregion Methods
    }
}
